package bean;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.bean.SessionScoped;
import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 *
 * @author cilli
 */
@ManagedBean
@RequestScoped
public class BeanHome {
    //ServletRequest req;
    //HttpServletRequest request = (HttpServletRequest) req;
    //HttpSession session = (HttpSession) request.getSession();
    
    //private Integer sessionIdUsuario;
    //private String sessionNomeUsuario;
    //private Integer sessionPermissao;

    public BeanHome() {
    }
    
    //public Integer getSessionIdUsuario() {
    //    return Integer.parseInt((String)session.getAttribute("sessionIdUsuario"));
    //}

    //public String getSessionNomeUsuario() {
    //    return (String)session.getAttribute("sessionNomeUsuario");
    //}

    //public Integer getSessionPermissao() {
    //    return Integer.parseInt((String) session.getAttribute("sessionPermissao"));
    //}
}
